package com.base.common.bean;

/**
 * 返回的结果 2013-12-6 上午9:10:42
 * 
 * @author jay.zhoujingjie
 */
public class ActionResult {
	private Object message; // 前台提示消息
	private Object data; // 结果

	public ActionResult(Object data) {
		this.data = data;
	}

	public ActionResult(Object data, Object message) {
		this.data = data;
		this.message = message;
	}

	public static ActionResult getActionResult(Object data) {
		return new ActionResult(data);
	}

	public static ActionResult getActionResult(Object data, Object message) {
		return new ActionResult(data, message);
	}

	public Object getMessage() {
		return message;
	}

	public void setMessage(Object message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
